public class Attr<T1> : Attribute { }

public class GenericAttribute
{
    [Attr<string>]
    public void myClass ()
    {

    }
}